<?php

namespace common\validate;

class BI extends BaseValidate
{
    // 验证规则
    protected $rule = [];

    // FindConfig 验证场景定义
    public function sceneFindConfig()
    {
        return $this
            ->append('param', 'require')
            ->append('param.filter', 'array');
    }

    // SelectConfig 验证场景定义
    public function sceneSelectConfig()
    {
        return $this
            ->append('param', 'require')
            ->append('param.filter', 'array')
            ->append('param.page', 'require|array');
    }

    // UpdateConfig 验证场景定义
    public function sceneUpdateConfig()
    {
        return $this
            ->append('data.project_id', 'require|integer')
            ->append('data.config_item_name', 'require');
//            ->append('data.config_data', 'require')

    }
}
